#include <bits/stdc++.h>

using namespace std;

const int maxn=1005;
bool vis[maxn];
int sg[maxn],a[maxn];

const char *str[]={"Bob will win.","Alice can win."};

int main(){
    int p,k,ans;
    scanf("%d%d",&p,&k);
    ans=0;
    while(p--){
        int n;
        scanf("%d",&n);
        sg[0]=0;
        for(int i=1;i<=n;i++){
            sg[i]=0;
            scanf("%d",a+i);
            memset(vis,0,sizeof(vis));
            for(int j=0;j<=k;j++){
                int t=i-j;
                if(t<=0) break;
                if(t-a[t]>=0) vis[sg[t-a[t]]]=1;
            }
            for(int j=0;;j++) if(!vis[j]){sg[i]=j;break;}
        }
        ans=ans^sg[n];
    }
    printf("%s\n",str[(bool)ans]);
    return 0;
}
